﻿
namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 上料计划_明细表
    /// </summary>
    [SugarTable("cks_loadingplan_details")]
    [Table(Name = "cks_loadingplan_details")]
    public class CksLoadingPlanDetails : BaseEntity
    {
        /// <summary>
        /// 明细ID 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Column(IsPrimary =true,IsIdentity =true)]
        public long Id { get; set; }

        /// <summary>
        /// 计划ID 
        /// </summary>
        public long PlanId { get; set; }

        /// <summary>
        /// 零件类型 
        /// </summary>
        public int PartType { get; set; }

        /// <summary>
        /// 计划投料子篮数量 
        /// </summary>
        public int PlanCount { get; set; }

        /// <summary>
        /// 实际投料子篮数量 
        /// </summary>
        public int RealCount { get; set; }

        /// <summary>
        /// 计划状态 1执行中 10已完成 
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 标记 1正常计划 2上次实际完成数量超出直接完成 
        /// </summary>
        public int Flag { get; set; }
        /// <summary>
        /// 上料线体
        /// </summary>
        public int Line {  get; set; }

        public int Order { get; set; }
        /// <summary>
        /// 最后投料时间 
        /// </summary>
        public DateTime? LastTime { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        public DateTime? CreatedTime { get; set; }

        

    }
}